// ----------------------------------------
// Filename: Signals.h
// Description: The header file for the signals
// Author: Jon Maloney
// Date: 15-June-2012
//

#ifndef _SIGNALS_H
#define _SIGNALS_H

//************************************************************
//                    Include .h files
//************************************************************
#include "binary_Semaphore.h"
#include "types.h"

//************************************************************
//                    Include external references
//************************************************************

//************************************************************
//                    Define Statements
//************************************************************

//************************************************************
//                    Struct, Union, enum Statements
//************************************************************

//************************************************************
//                    Global variables and constants
//************************************************************

//************************************************************
//                    Prototype Global Functions
//************************************************************

// ----------------------------------------
// Signal_CreateADCSignal
// 
//
// Input:
//	semaphore: A semaphore that will be signalled every time 
//			the ADC completes a sample
// Output:
//  true:	If the signal has been successfully setup
//	fals:	The semaphores is a null reference
//
BOOL Signal_CreateADCSignal(bsem_Handle semaphore);

// ----------------------------------------
// Signal_CreateUART2Signal
// 
// Sets up signaling for the UART.
//
// Input:
//	RxSem: A semaphore that will be signalled every time 
//			the UART receives a byte
//	TxSem: A semaphore that willbe signalled every time
//			the UART finishes sending a byte.
// Output:
//  true:	If the signal has been successfully setup
//	fals:	If one of the semaphores is a null reference
// Conditions:
// 	none
BOOL Signal_CreateUART2Signal(bsem_Handle RxSem, bsem_Handle TxSem);

#endif
